#include "syscall.h"

#define THIS "A"
#define NB_THREADS 12

const int N = 1;

void puts(const char *s) {
  const char *p;
  for (p = s; *p != '\0'; p++)
    PutChar(*p);
}

void f(void* arg) {
  const char *s = arg;
  int i;
  for (i = 0; i < N; i++)
    puts(s);
  ThreadExit();
}

int main() {
  int i;
  for (i = 0; i < NB_THREADS; i++)
    ThreadCreate(f, THIS);
  ThreadExit();
}